package com.springboot.dto.req;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class PageRequest {
    @NotNull(message = "页码不能为空")
    private Integer page; // 当前页码
    @NotNull(message = "每页条数不能为空")
    @Max(value = 100, message = "每页条数不能超过100")
    private Integer size; // 每页显示条数
}
